package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 工厂换货
 */
@Data
@TableName("factory_exchange")
public class FactoryExchangeDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer factoryId;
    private String barCode;
    @TableField("`count`")
    private Integer count;
    private Date time;
    private Boolean finished;
    private Integer serviceId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getFinished() {
        return finished;
    }

    public void setFinished(Boolean finished) {
        this.finished = finished;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    @Override
    public String toString() {
        return "FactoryExchangeDO{" +
                "id=" + id +
                ", factoryId=" + factoryId +
                ", barCode='" + barCode + '\'' +
                ", count=" + count +
                ", time=" + time +
                ", finished=" + finished +
                ", serviceId=" + serviceId +
                '}';
    }
}
